<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script>

//Cria menu de proximo trabalho
parent.document.getElementById('icone1').innerHTML = "";
parent.document.getElementById('icone2').innerHTML = "";
parent.document.getElementById('icone3').innerHTML = "";
parent.document.getElementById('icone4').innerHTML = "";
parent.document.getElementById('icone5').innerHTML = "";

function aumentaframe ()
{
	parent.document.getElementById('corpo').height = 350;
	parent.document.getElementById('corpo').height = document.body.scrollHeight	+ 10;	
}

function carregaFrame (valor, pagina, valor2, pagina2)
{
	//parent.document.getElementById('nivel2').innerHTML = " 	&nbsp;"  + 
	//"<a href=\"javascript:;\" title=\"" + pagina + "\" target=\"_parent\"  onClick=\"carregaFramePrincipal('"+ valor +"', '0');\">" + pagina + "</a>";
	
	parent.document.getElementById('corpo').src = valor;
	
}
</script>
</head>

<?php
require_once("../funcoes/restricaoAcesso.php");
require_once("../funcoes/funcoes.php");
destroiSessoes ();
?>

<body onload="aumentaframe()">
<table border="0" align="center" cellpadding="0" cellspacing="10" >

<tr>
<td colspan="2" width="200"><a href="javascript:;" title="Cadastrar Unidade" target="_parent" onclick="carregaFrame('cad_unidade.php', 'Unidades');"><img src="../img/cad_un.gif" width="200" height="150" /></a></td>

<td colspan="2" width="200"><a href="javascript:;" title="Seleção dos Processos" target="_parent" onclick="carregaFrame('cad_processo_usr.php', 'Seleção dos Processos');"><img src="../img/def_proc.gif" width="200" height="150" /></a><br /></td>

<td colspan="2" width="200"><a href="javascript:;" title="Abiente de Processo" target="_parent" onclick="carregaFrame('cad_ambiente_processo_usr.php', 'Ambiente do Processo');"><img src="../img/amb_proc.gif" width="200" height="150" /></a></td>
</tr>

<tr>
<td colspan="2" width="200"><a href="javascript:;" title="Passos Decisórios" target="_parent" onclick="carregaFrame('cad_etapa_usr.php', 'Passos', 'cad_questionario.php');"><img src="../img/passos.gif" width="200" height="150"  /></a></td>
<td colspan="2" width="200"><a href="javascript:;" title="IRC" target="_parent" onclick="carregaFrame('cad_questionario.php', 'IRC');"><img src="../img/quest.gif" width="200" height="150" /></a></td>
<td colspan="2" width="200"><?php if ($_SESSION['administrador']) { ?>
<a href="javascript:;" title="Validação" target="_parent" onclick="carregaFrame('validacao.php', 'Validação');"><img src="../img/validacao.gif" width="200" height="150" /></a>
<?php } ?></td>
</tr>

</table>
</body>
</html>
